package com.ponxu.mb.web.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.ponxu.log.Log;
import com.ponxu.log.LogFactory;
import com.ponxu.mb.model.User;

/**
 * @author xwz
 * 
 */
public class TestAction extends MiniBlogAction {
	private static final Log LOG = LogFactory.getLog();

	@Override
	public String execute(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		LOG.debug("TestAction..........");

		User u = new User();
		u.setName("xwz");

		request.setAttribute("user", u);
		request.setAttribute("msg", "Hello Action..");
		request.getSession().setAttribute("admin", "admin");

		return "hello.ftl";
	}

}
